package com.gulimall.product.feign;

import com.gulimall.common.utils.R;
import com.gulimall.product.to.es.SkuEsModelTo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @Author by董江
 * @Tool Intellij IDEA
 * @Classname SearchFeignService
 * @Date 2022/5/11 16:19
 */
@FeignClient(value = "gulimall-search",path = "/search")
public interface SearchFeignService {
    /**
     * 产品上架
     * @param skuEsModelTos
     * @return
     */
    @PostMapping("/save/product")
    R productStatusUp(@RequestBody List<SkuEsModelTo> skuEsModelTos);
}
